package demo.springboot.Tools;

public class Tools2 {

    public static String get_operating_system(){
        String os = System.getProperty("os.name");
        System.out.println("操作系统是 : " + os.toLowerCase());
        if(os.toLowerCase().startsWith("win")){
            return "windows";
        }else {
            return "linux";
        }
    }
}
